package AST;
import java.util.ArrayList;


public class ASTNode {
	private ArrayList<ASTNode> children;
	private String type;
	private String data;
	
	public ASTNode(String type, String data){
		children = new ArrayList<ASTNode>();
		this.type = type;
		this.data = data;
	}
	public ASTNode(String type){
		children = new ArrayList<ASTNode>();
		this.type = type;
		this.data = "";
	}
	public ASTNode(){
		children = new ArrayList<ASTNode>();
		this.type = "";
		this.data = "";
	}
	
	public void addChild(ASTNode node){
		children.add(node);
	}
	
	public String getType(){
		return type;
	}
	public String getData(){
		return data;
	}
	public ArrayList<ASTNode> getChildren(){
		return children;
	}
}
